﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RGB_Sampling
{
    internal class Threshold_Reference
    {
        public readonly double R_x = 0;
        public readonly double R_y = 0;
        public readonly double R_z = 0;

        public readonly double G_x = 0;
        public readonly double G_y = 0;
        public readonly double G_z = 0;

        public readonly double B_x = 0;
        public readonly double B_y = 0;
        public readonly double B_z = 0;

        public readonly double Color1_x = 0.2419;
        public readonly double Color1_y = 0.1832;
        public readonly double Color1_z = 0;

        public readonly double Color2_x = 0.3219;
        public readonly double Color2_y = 0.5212;
        public readonly double Color2_z = 0;

        public readonly double Color3_x = 0.3419;
        public readonly double Color3_y = 0.2082;
        public readonly double Color3_z = 0;

        public readonly double Color4_x = 0.6219;
        public readonly double Color4_y = 0.3015;
        public readonly double Color4_z = 0;

        public readonly double Color5_x = 0.4219;
        public readonly double Color5_y = 0.3961;
        public readonly double Color5_z = 0;

        public readonly double Color6_x = 0.3127;
        public readonly double Color6_y = 0.329;
        public readonly double Color6_z = 0;



        public readonly double[] Color256_x = new double[256]
        {
            0,0.5419,0.4419,0.6607,0.2395,0.3278,0.1787,0.1978,0.3224,0.4419,0,0.3127,0.3026,0.2419,0.4913,0.5819,0.6607,0.6030,0.5454,0.4950,0.4819,0.4548,0.4819,0.4619,0.4619,0.4219,0.4419,0.4419,0.4219,0.2253,0.3026,0.3100,0.5278,0.6383,0.1570,0.6332,0.5419,0.5419,0.5819,0.5819,0.5819,0.2219,0.1742,0.1621,0.1600,0.1378,0.4419,0.4675,0.5061,0.5447,0.5832,0.2761,0.2578,0.2395,0.2141,0.1887,0.3619,0.3900,0.4300,0.4700,0.5019,0.1771,0.1875,0.1926,0.2214,0.2502,0.4419,0.3809,0.3199,0.2100,0.1978,0.4000,0.3794,0.3588,0.3224,0.2200,0.3819,0.3619,0.3631,0.3619,0.3537,0.3466,0.3419,0.3372,0.3419,0.3419,0.3248,0.3219,0.3219,0.3219,0.3090,0.3019,0.3019,0.2925,0.3019,0.2819,0.2819,0.2819,0.2819,0.2619,0.2619,0.2619,0.2619,0.2819,0.2819,0.2819,0.2728,0.2619,0.2619,0.2619,0.2419,0.2419,0.2419,0.2419,0.2419,0.2502,0.2259,0.2019,0.2219,0.2219,0.2219,0.2219,0.1601,0.2019,0.2019,0.2019,0.2019,0.2419,0.2219,0.1819,0.1627,0.1819,0.2219,0.2419,0.2219,0.1651,0.2019,0.1819,0.1819,0.2419,0.1819,0.1670,0.2019,0.1819,0.2219,0.1686,0.1819,0.2019,0.2219,0.1699,0.1707,0.1715,0.2019,0.2219,0.1727,0.2419,0.2619,0.2819,0.3019,0.3100,0.3219,0.3219,0.2819,0.2619,0.1742,0.1761,0.2419,0.2019,0.2619,0.2819,0.2219,0.2219,0.2219,0.1785,0.2019,0.2419,0.1814,0.2419,0.2819,0.2619,0.2419,0.2419,0.3074,0.3364,0.3612,0.3219,0.3219,0.3219,0.3827,0.3619,0.3619,0.4009,0.3619,0.4148,0.4264,0.3419,0.3619,0.4346,0.4219,0.4019,0.4408,0.4219,0.4514,0.4419,0.4219,0.4019,0.4419,0.4648,0.4219,0.4619,0.4824,0.4219,0.4019,0.4619,0.4819,0.4419,0.4219,0.4619,0.4819,0.5019,0.5049,0.4419,0.4219,0.4819,0.4419,0.5314,0.4619,0.4619,0.4819,0.5019,0.5219,0.5419,0.5419,0.5019,0.5019,0.5019,0.5618,0.5619,0.5419,0.5419,0.5819,0.5819,0.5819,0.6219,0.4219,0.4419,0.4219,0,0,0,0,0,0,0,0,0
        };
        public readonly double[] Color256_y = new double[256]
        {
            0,0.3577,0.2429,0.3006,0.2442,0.2142,0.1026,0.0866,0.5341,0.4429,0,0.3290,0.5857,0.2137,0.3229,0.3316,0.3006,0.2769,0.2532,0.2325,0.2960,0.2160,0.2560,0.2899,0.2499,0.2761,0.2429,0.2829,0.2961,0.3312,0.5857,0.3200,0.4191,0.3291,0.0854,0.3321,0.3777,0.3577,0.3516,0.3316,0.2916,0.4062,0.3615,0.2958,0.2500,0.1648,0.4229,0.3832,0.3660,0.3489,0.3317,0.2866,0.2654,0.2442,0.1994,0.1545,0.3751,0.4200,0.4100,0.4000,0.4030,0.0943,0.0905,0.0885,0.1103,0.1320,0.2429,0.2038,0.1648,0.1000,0.0866,0.4800,0.4994,0.5187,0.5341,0.5800,0.2221,0.2551,0.1783,0.2151,0.1745,0.1716,0.2482,0.1677,0.2282,0.2082,0.1626,0.2412,0.2212,0.2012,0.1561,0.2343,0.2143,0.1493,0.1943,0.2473,0.2673,0.2873,0.3073,0.2802,0.2602,0.2402,0.2202,0.2073,0.1873,0.2273,0.1413,0.2002,0.1902,0.1802,0.2441,0.2340,0.2238,0.1934,0.1832,0.1320,0.1220,0.1121,0.2062,0.2162,0.2262,0.2362,0.2150,0.2293,0.2393,0.2493,0.2593,0.2543,0.2462,0.2523,0.2418,0.2623,0.2662,0.2746,0.2862,0.2671,0.2793,0.2723,0.2823,0.2949,0.2923,0.2870,0.2993,0.3023,0.3062,0.3038,0.3123,0.3193,0.3262,0.3170,0.3254,0.3329,0.3393,0.3462,0.3455,0.3355,0.3402,0.3273,0.3343,0.3200,0.3612,0.4012,0.3473,0.3602,0.3615,0.3815,0.3761,0.3793,0.3802,0.3673,0.3862,0.4062,0.4262,0.4056,0.3993,0.3964,0.4365,0.4370,0.3873,0.4002,0.4167,0.4534,0.5994,0.5767,0.5573,0.5212,0.4812,0.4412,0.5406,0.4951,0.4551,0.5264,0.4151,0.5155,0.5065,0.3682,0.3751,0.5000,0.4561,0.4291,0.4952,0.4361,0.4869,0.4429,0.4161,0.3891,0.4229,0.4765,0.3961,0.4299,0.4627,0.3761,0.3491,0.4099,0.4160,0.3829,0.3561,0.3899,0.3960,0.4030,0.4452,0.3629,0.3361,0.3760,0.3429,0.4245,0.3499,0.3299,0.3360,0.3630,0.3507,0.3777,0.3577,0.2630,0.3030,0.3230,0.4008,0.3646,0.3177,0.2777,0.2916,0.3316,0.3516,0.3015,0.2361,0.3029,0.3161,0,0,0,0,0,0,0,0,0
        };

    }
}
